package com.yuanlp.startall;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void startAllPlayer(View view){
             Intent intent=new Intent();
             //intent.setDataAndType(Uri.parse("http://vfx.mtime.cn/Video/2017/07/12/mp4/170712132402662967.mp4"),"video/*");
                //String url="http://vfx.mtime.cn/Video/2017/07/12/mp4/170712132402662967.mp4";
                //央视13直播
                //String url="http://cctv13.vtime.cntv.wscdns.com/live/no/23_/seg0/index.m3u8?uid=default&AUTH=6+sb7H/DDgZ9MYff0mJ1rpMUyksw8zC6nQhOykNIpXaTZdEDg6huYnsWRW7KsatosnIXEVhU2Yr6gZJ5V8xEUw==";
        String url="mms://202.107.35.51/WS_zhejiang";
        Uri uri=Uri.parse(url);

                intent.setDataAndType(uri,"video/*");
            //intent.setDataAndType(Uri.parse("http://localhost:8080/Honor.mp4"),"video/*"); //所有格式
             startActivity(intent);
    }
}
